package com.example.bbs.model;

import java.util.Date;

/**
 * @auther: zhangxin
 * @Description:
 */
public class Block {

    private int blockId;

    private String blockName;

    private int postNumber;

    private Date createTime;

    public int getBlockId() {
        return blockId;
    }

    public void setBlockId(int blockId) {
        this.blockId = blockId;
    }

    public String getBlockName() {
        return blockName;
    }

    public void setBlockName(String blockName) {
        this.blockName = blockName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public int getPostNumber() {
        return postNumber;
    }

    public void setPostNumber(int postNumber) {
        this.postNumber = postNumber;
    }

    public Block() {
    }

    public Block(String blockName, Date createTime) {
        this.blockName = blockName;
        this.createTime = createTime;
    }

    public Block(int blockId, String blockName, Date createTime) {
        this.blockId = blockId;
        this.blockName = blockName;
        this.createTime = createTime;
    }

    public Block(int blockId, String blockName, int postNumber, Date createTime) {
        this.blockId = blockId;
        this.blockName = blockName;
        this.postNumber = postNumber;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Block{" +
                "blockId=" + blockId +
                ", blockName='" + blockName + '\'' +
                ", postNumber=" + postNumber +
                ", createTime=" + createTime +
                '}';
    }
}
